package com.zhuiYun.project.api.sysUser.controller;

import com.zhuiYun.project.annotation.OptLog;
import com.zhuiYun.project.api.sysUser.service.UserService;
import com.zhuiYun.project.common.response.CommonConstants;
import com.zhuiYun.project.common.response.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "用户管理")
@RequestMapping("/upUser")
@Slf4j
public class UserController {

    @Autowired
    UserService userService;


    /**
     * @Author 小江
     * @Description //TODO
     * @Date 10:33 2023/4/26
     **/
    @GetMapping("getUserById")
    @ApiOperation(value = "根据用户id获取门户user用户信息")
    @OptLog(modular = "根据用户id获取门户user用户信息", type = CommonConstants.SELECT, describe = "根据用户id获取门户user用户信息")
    public CommonResult getUserById(Integer id){
        return userService.getUserById(id);
    }


}
